package com.zzjc.web.mapper;

import com.zzjc.web.entity.SwimmingRoom;
import com.zzjc.web.entity.UploadFileRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SwimmingRoomDao {

    List<SwimmingRoom> getRoomById(@Param("roomList") List<Integer> roomList);

    SwimmingRoom getRoomByName(@Param("roomName") String roomName);

    int insertRoom(SwimmingRoom room);

    int updateRoom(SwimmingRoom room);

    int deleteRoom(@Param("roomList") List<Integer> roomList);

    List<SwimmingRoom> findAll(SwimmingRoom room);

    Integer insertRecord(UploadFileRecord record);

    List<SwimmingRoom> getArea(SwimmingRoom room);
} 